package com.woniuxy.seckill.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * description: DemoController <br>
 * date: 2022/1/8 4:48 下午 <br>
 * author: shesaifei <br>
 * version: 1.0 <br>
 */
@Controller
@RequestMapping("/demo")
public class DemoController {
    //测试页面跳转
    @RequestMapping("/hello")
    public String hello(Model model) {
        model.addAttribute("name", "xxxx");
        return "hello";
    }
}
